﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="add_pop_shipcompList.ascx.cs" Inherits="uswinweb.datacontrol.add_pop_shipcompList" %>
<table border="0" cellpadding="0" cellspacing="0" class="edtb2">
    <thead>
        <tr>
            <td>
                中文名称
            </td>
            <td>
                英文名
            </td>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>
                <input id="search_txt2" name="search_txt2" value="<%=search_txt_name %>" type="text" class="soout" onblur="this.className='soout'" onfocus="this.className='soon'" style="width: 100px;"
                    onkeydown="datasearch({controlName:'<%=controllername%>',showDiv:'<%=showdiv%>',searchCn:document.getElementById('search_txt2').value,searchEn:document.getElementById('search_txt3').value,scid:<%=cid%>});"/>
            </td>
            <td>
                <input id="search_txt3" name="search_txt3" value="<%=search_txt_ename %>" type="text" class="soout" onblur="this.className='soout'" onfocus="this.className='soon'" style="width: 100px;"
                    onkeydown="datasearch({controlName:'<%=controllername%>',showDiv:'<%=showdiv%>',searchCn:document.getElementById('search_txt2').value,searchEn:document.getElementById('search_txt3').value,scid:<%=cid%>});"/>
            </td>
        </tr>
        <% int i = 1;
           foreach (System.Data.DataRow dr in dataDT.Rows)
           { %>
        <tr class="tp" onmouseover="jQuery(this).addClass('co3');" onmouseout="jQuery(this).removeClass('co3');"
            onclick="luffy('<%=dr["ename"].ToString().Trim()%>','shipcomp_hidd','<%=dr["tcode"].ToString().Trim()%>');<%if(compid==0){%>AjaxHelper.Updater('routes_hxList.ascx', 'hxlistdata', 'cid=<%=cid%>&shipcompcode=<%=dr["tcode"].ToString().Trim()%>');<%}else{%>AjaxHelper.Updater('add_pop_purposePortList.ascx', 'showdata2', 'shipcompcode=<%=dr["tcode"].ToString().Trim()%>');<%}%>">
            <td id="shipcomp_hidd_<%=i %>" name="<%=dr["tcode"] %>">
                <%=dr["name"].ToString() == "" ? "&nbsp;" : dr["name"]%>
            </td>
            <td>
                <%=dr["ename"].ToString() == "" ? "&nbsp" : dr["ename"]%>
            </td>
        </tr>
        <%
i++;
                                   } %>
    </tbody>
    <tfoot>
        <tr>
            <td colspan="3">
                <%=PageListStr%>
            </td>
        </tr>
    </tfoot>
</table>
